//
//  ImgButtonLabel.m
//  QoilPublic
//
//  Created by SunChao on 17/8/23.
//  Copyright © 2017年 杨凯. All rights reserved.
//

#import "ImgButtonLabel.h"

@implementation ImgButtonLabel

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        _imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(frame), CGRectGetHeight(frame)-20)];
        [self addSubview:_imageView];
        
        _imageButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(frame), CGRectGetHeight(frame)-20)];
        [self addSubview:_imageButton];
        _label = [[UILabel alloc]initWithFrame:CGRectMake(0, CGRectGetHeight(frame)-20, CGRectGetWidth(frame), 20)];
        _label.backgroundColor = [UIColor redColor];
        _label.textColor = [UIColor blackColor];
        [self addSubview:_label];
    }
    return self;
}

@end
